
window.onload = function(){
    var div1 = document.getElementById('div1')
    alert(div1.innerHTML)
    

    var $div1 = $("#div1")
    alert("jqs" + " " + $div1.html())

    var divs = document.getElementsByTagName('div')
    for(let i = 0; i<dispatchEvent.length; i++){
        $(divs[i]).html("疯狂星期四")
    }

    $("#btn1").click(function(){
        alert($("#name").val())
    })
    
    $(function(){
        $("#div1").css("font-size", "40px")
        $("#div1").css("color", "red")
    })

}